import 'package:equatable/equatable.dart';
import '../model/training_record.dart';

abstract class TrainingHistoryState extends Equatable {
  const TrainingHistoryState();

  @override
  List<Object?> get props => [];
}

class TrainingHistoryInitial extends TrainingHistoryState {
  const TrainingHistoryInitial();
}

class TrainingHistoryLoading extends TrainingHistoryState {
  const TrainingHistoryLoading();
}

class TrainingHistoryLoadedSuccess extends TrainingHistoryState {
  final List<TrainingRecord> records;

  const TrainingHistoryLoadedSuccess(this.records);

  @override
  List<Object?> get props => [records];
}

class TrainingHistoryError extends TrainingHistoryState {
  final String message;

  const TrainingHistoryError(this.message);

  @override
  List<Object?> get props => [message];
}